from django import shortcuts
from django.conf import settings
from django.contrib.sites import models as site_models

def robots(request):
    response = shortcuts.render_to_response('robots.txt', {
            'STATIC_URL': settings.STATIC_URL,
            'domain': site_models.Site.objects.get_current().domain})
    response['Content-Type'] = 'text/plain'
    response['Content-Disposition'] = 'inline'
    return response

